package com.allesblinkt.mucom.common;

import java.util.Vector;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * @author mys
 *
 */
@XStreamAlias("client")
public class ClientItem {

	private String hostname;
	private String hash;
	private String os;
	
   	@XStreamOmitField
	private long lastSeen;
   	
   	@XStreamOmitField
	private long activeSince;
   	
   		
	private Vector<ContentItem> contentItems;
	
	public ClientItem(){
		contentItems = new Vector<ContentItem>();
	}


	/**
	 * @return the lastSeen
	 */
	public long getLastSeen() {
		return lastSeen;
	}

	/**
	 * @param lastSeen the lastSeen to set
	 */
	public void setLastSeen(long lastSeen) {
		this.lastSeen = lastSeen;
	}

	/**
	 * @return the hostname
	 */
	public String getHostname() {
		return hostname;
	}

	/**
	 * @param hostname the hostname to set
	 */
	public void setHostname(String hostname) {
		this.hostname = hostname;
	}

	/**
	 * @return the hash
	 */
	public String getHash() {
		return hash;
	}

	/**
	 * @param hash the hash to set
	 */
	public void setHash(String hash) {
		this.hash = hash;
	}

	/**
	 * @return the contentItems
	 */
	public Vector<ContentItem> getContentItems() {
		return contentItems;
	}

	/**
	 * @param contentItems the contentItems to set
	 */
	public void setContentItems(Vector<ContentItem> contentItems) {
		this.contentItems = contentItems;
	}


	/**
	 * @return the os
	 */
	public String getOs() {
		return os;
	}


	/**
	 * @param os the os to set
	 */
	public void setOs(String os) {
		this.os = os;
	}


	/**
	 * @param activeSince the activeSince to set
	 */
	public void setActiveSince(long activeSince) {
		this.activeSince = activeSince;
	}


	/**
	 * @return the activeSince
	 */
	public long getActiveSince() {
		return activeSince;
	}
	
}
